
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta
      http-equiv="Cache-Control"
      content="no-cache, no-store, must-revalidate"
    />
    <meta http-equiv="Cache" content="no-cache" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link
      rel="stylesheet"
      href="https://kendo.cdn.telerik.com/2021.3.1207/styles/kendo.default-v2.min.css"
    />
    <script src="https://unpkg.com/vue@next"></script>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2021.3.1207/js/kendo.all.min.js"></script>
    <title>视差</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      .shell {
        height: 100vh;
        overflow-x: hidden;
        perspective: 3px;
      }
      .shell div {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        font-style: 30px;
        letter-spacing: 2px;
      }
      .image {
        transform: translateZ(-1px) scale(1.6);
        background-size: cover;
        height: 100vh;
        z-index: -1;
      }
      .text {
        height: 50vh;
        background-color: #fff;
      }
      .text h1 {
        color: #000;
      }
      .heading {
        z-index: -1;
        transform: translateY(-30vh) translateZ(1px);
        color: #fff;
        font-size: 30px;
      }
    </style>
  </head>
  <body>
    <div class="shell">
      <div class="image" style="background-image: url('1.jpg')"></div>
      <div class="heading">
        <h1>1</h1>
      </div>
      <div class="text">
        <h1>1</h1>
      </div>

      <div class="image" style="background-image: url('2.jpg')"></div>
      <div class="heading">
        <h1>2</h1>
      </div>
      <div class="text">
        <h1>2</h1>
      </div>

      <div class="image" style="background-image: url('3.png')"></div>
      <div class="heading">
        <h1>3</h1>
      </div>
      <div class="text">
        <h1>3</h1>
      </div>
			</div>
		
    </div>
  </body>
</html>
